-- GENERATED SPELL FOR [Qiraji Slayer] --


function spell0_15250(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(26043,pUnit)
pUnit:RegisterEvent('Sorts_15250', 30268, 1)
end

function spell1_15250(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(26041,pUnit)
pUnit:RegisterEvent('Sorts_15250', 10000, 1)
end

function spell2_15250(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15250', 638, 1)
end

function spell3_15250(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_15250', 575, 1)
end

function spell4_15250(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_15250', 2000, 1)
end

function Sorts_15250(pUnit, Event)
local choix_sorts_15250 = math.random(0, 4)
if choix_sorts_15250 == 0 then
pUnit:RegisterEvent('spell0_15250', 1, 1)
end
if choix_sorts_15250 == 1 then
pUnit:RegisterEvent('spell1_15250', 1, 1)
end
if choix_sorts_15250 == 2 then
pUnit:RegisterEvent('spell2_15250', 1, 1)
end
if choix_sorts_15250 == 3 then
pUnit:RegisterEvent('spell3_15250', 1, 1)
end
if choix_sorts_15250 == 4 then
pUnit:RegisterEvent('spell4_15250', 1, 1)
end
end

function mob15250_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15250', math.random(1500, 3000), 1)
end

function mob15250_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15250_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15250_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15250, 1, 'mob15250_Action')
RegisterUnitEvent(15250, 2, 'mob15250_Leave')
RegisterUnitEvent(15250, 3, 'mob15250_Kill')
RegisterUnitEvent(15250, 4, 'mob15250_Die')
